home *** CD-ROM | disk | FTP | other *** search
- Path: news.voicenet.com!news
- From: kobak@voicenet.com (Peter Kobak)
- Newsgroups: comp.lang.c++
- Subject: Re: Is there a standard for * and & placement style?
- Date: 21 Feb 1996 17:53:59 GMT
- Organization: Voicenet - Internet Access - (215)674-9290
- Message-ID: <4gfm7n$1an@news.voicenet.com>
- References: <3128BD31.4AF8@wildfire.com>
- NNTP-Posting-Host: ivyland54.voicenet.com
- X-Newsreader: NeoLogic News for OS/2 [version: 4.2]
-
- In message <marnoldDn27q9.Is0@netcom.com> - marnold@netcom.com (Matt Arnold)
- writes:
- :>
- :>Stonewall Ballard <stoney@wildfire.com> writes:
- :>
- :>>I'm trying to find out whether there is a "standard" for the
- :>>placement of * and &. A survey of C++ texts shows that most use
- :>
- :>>Form 1
- :>> int& foo;
- :>> int* foo;
- :>
- :>>while some use
- :>
- :>>Form 2
- :>> int& foo;
- :>> int *foo;
- :>
- :>There is probably no standard, just religiously held opinions.
- :>
-
- After you settle this :-), how about where to put the 'const':
-
- A const& a;
- A const &a;
- const A& a;
- const A &a;
-
- ================
- Peter Kobak
- kobak@voicenet.com
-
-
-